<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    apiready = function() {
        var alivcLivePusher = api.require('alivcLivePusher');
        alivcLivePusher.initPusher({
            resolution:"540P",
            cameraType:"back"
        },function(ret){
            console.log(JSON.stringify(ret));
        });
        alivcLivePusher.startPush({
            url:"rtmp://livet.cfnet.org.cn/cfnet/cfnet?auth_key=1565848655-0-0-989295f11bc756b5035154be08cf5528"
        },function (ret) {
            alivcLivePusher.setPushMirror({
                isMirror:true
            });
        });
        alivcLivePusher.startPreview(function (ret) {
            console.log(JSON.stringify(ret));
        });

    }
</script>
</html>